# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-

def bubblesort(list) :
    length = len(list)
    for i in range(length-1):
        for j in range(length-i-1):
            if list[j] > list[j+1] :
                list[j],list[j+1] = list[j+1],list[j]
    return list
    
l = [21,89,2,21]
print(bubblesort(l))